import { reactive } from 'vue';
export const useTable = () => {
    const columns = reactive([
        {
            type: "index",
            align: "center",
            label: "序号",
            width: "50",
        },
        {
            label: "医保",
            prop: "test",
        },
        {
            label: "单据号",
            prop: "test",
        },
    ])
    const table = reactive([{
        test: '测试数据'
    },
    {
        test: '测试数据'
    },
    {
        test: '测试数据'
    },
    {
        test: '测试数据'
    }
    ])


    const chargeColumns = reactive([
        {
            label: "项目",
            prop: "test",
        },
        {
            label: "应收金额",
            prop: "test",
        },
        {
            label: "实收金额",
            prop: "test",

        },
    ])

    const chargeTable = reactive([{
        test: '测试数据'
    },
    {
        test: '测试数据'
    },
    {
        test: '测试数据'
    },
    {
        test: '测试数据'
    }
    ])

    return {
        columns,
        table,
        chargeTable,
        chargeColumns
    }
}